<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\meeting\Meeting */

$this->title = $model->title;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', '会议列表'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $this->beginBlock('siderbar'); ?>
<?= $this->render('//layouts/cms-menu') ?>
<?php $this->endBlock(); ?>
<div class="meeting-view">

    <p>
        <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'title',
             [
                'attribute'=>'category_id',
                'value'=> $model->category->name
            ],
            'summary',
            'content:ntext',
            //'label_img',
            [
            'attribute' => 'label_img',
            'format' => 'raw',
            'value' => Html::img(Yii::$app->params['setshow'] . $model->newimg),
            ],
            'beforeprompt',
            'duringprompt',
            //'meetingdata',
            [
            'attribute' => 'meetingdata',
            'format' => 'raw',
            'value' => $model->newfile,
            ],
            //'is_valid',
            //'created_at',
            [
                'attribute' => 'created_at',
                'format' => ['date', 'php:Y-m-d H:i:s'],
            ],
            //'updated_at',
            'starttime',
            'endtime',
            'deadline',
            [
                'attribute' => 'enroll',
                'value' => $model->IsopenLabel,
            ],
			[
                'attribute' => 'is_pay',
                'value' => $model->IspayLabel,
            ],
        ],
    ]) ?>

</div>
